CALLOC
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
calloc
- allocate clean memory (zero initialized space)
SYNOPSIS
Fd #include <stdlib.h>
Ft void *
Fn calloc size_t nmemb size_t size
DESCRIPTION
The
Fn calloc
function allocates space for an array of
Fa nmemb
objects, each of whose size is
Fa size .
The space is initialized to all bits zero.
RETURN VALUES
The
Fn calloc
function returns
a pointer to the
the allocated space if successful; otherwise a null pointer is returned.
SEE ALSO
malloc(3),
realloc(3),
free(3)
STANDARDS
The
Fn calloc
function conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 19:42:00 GMT, December 25, 2022